package com.jiaai.cloud.live.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.live.entity.TAnchor;
import com.baomidou.mybatisplus.service.IService;
import com.jiaai.cloud.live.entity.TAnchorSearch;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;


import java.util.List;

/**
 * <p>
 * 主播基础信息表 服务类
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title ITAnchorService.java
 * @since 2017/8/1
 */
public interface ITAnchorService extends IService<TAnchor> {

    /**
     * 查找主播列表
     * @param
     * @return
     */
    CustomPage<TAnchor> findAnchorFully(Page page, TAnchorSearch search);

    /**
     * 删除主播列表
     * @param
     * @return
     */
    void delete(@Param("anchorId") String anchorId);

    List<TAnchor> findZhiboFully();

    CustomPage<TAnchor> findByAll(Page page, Wrapper wrapper);
    /**
     * 查找主播排行
     * @param
     * @return
     */
    CustomPage<TAnchor> anchorPaihang(Page page, Wrapper wrapper);
}
